﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Breeding.Infrastructure.Migrations
{
    public partial class 体尺和品相加字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "AgeDay",
                table: "ConditionMeasure",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Breed",
                table: "ConditionMeasure",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MeasureCottage",
                table: "ConditionMeasure",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MeasureField",
                table: "ConditionMeasure",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Sex",
                table: "ConditionMeasure",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "AgeDay",
                table: "BodyMeasure",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Breed",
                table: "BodyMeasure",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MeasureCottage",
                table: "BodyMeasure",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MeasureField",
                table: "BodyMeasure",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Sex",
                table: "BodyMeasure",
                type: "int",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AgeDay",
                table: "ConditionMeasure");

            migrationBuilder.DropColumn(
                name: "Breed",
                table: "ConditionMeasure");

            migrationBuilder.DropColumn(
                name: "MeasureCottage",
                table: "ConditionMeasure");

            migrationBuilder.DropColumn(
                name: "MeasureField",
                table: "ConditionMeasure");

            migrationBuilder.DropColumn(
                name: "Sex",
                table: "ConditionMeasure");

            migrationBuilder.DropColumn(
                name: "AgeDay",
                table: "BodyMeasure");

            migrationBuilder.DropColumn(
                name: "Breed",
                table: "BodyMeasure");

            migrationBuilder.DropColumn(
                name: "MeasureCottage",
                table: "BodyMeasure");

            migrationBuilder.DropColumn(
                name: "MeasureField",
                table: "BodyMeasure");

            migrationBuilder.DropColumn(
                name: "Sex",
                table: "BodyMeasure");
        }
    }
}
